<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IDLE</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.js"></script>
<script type="text/javascript" src="jquery.scrollTo-1.4.2-min.js"></script>
<script type="text/javascript" src="jquery.localscroll-1.2.7-min.js"></script>
<script src="http://www.google.com/jsapi?key=AIzaSyCiZKrqClIaG6RzdIA5Z-BMsf_A-gQghU8"></script>
<script type="text/javascript">
google.setOnLoadCallback(createPicker);
google.load("picker", "1",{"language":"de"});
var query='';
var Visible=false;
var view;
var combob;
function busqueda() {
	query=document.getElementById('xx').value;
	combob=document.getElementById('combo').value;
	if(combob>0&&combob<9){
		Visible=true;
	}
	else{Visible=false;}
	createPicker();
}
function localizacion() {
	query='Escuela Superior de Informatica, Ciudad Real';
	combob="8";
	if(combob>0&&combob<9){
		Visible=true;
	}
	else{Visible=false;}
	createPicker();
}
			
function createPicker() {
		switch(combob){
		case "1":
			view = new google.picker.View(google.picker.ViewId.DOCUMENTS);
			break;
		case "2":
			view = new google.picker.View(google.picker.ViewId.PDFS);
			break;
		case "3":
			view = new google.picker.View(google.picker.ViewId.FORMS);
			break;
		case "4":
			view = new google.picker.View(google.picker.ViewId.PRESENTATIONS);
			break;
		case "5":
			view = new google.picker.View(google.picker.ViewId.SPREADSHEETS);
			break;
		case "6":
				view = new google.picker.ViewGroup(google.picker.ViewId.DOCS).
				   	addView(google.picker.ViewId.DOCUMENTS).
				   	addView(google.picker.ViewId.PDFS).
				   	addView(google.picker.ViewId.FORMS).
				    addView(google.picker.ViewId.PRESENTATIONS).
				    addView(google.picker.ViewId.SPREADSHEETS).
                    addView(google.picker.ViewId.RECENTLY_PICKED);
			break;
		case "7":
			view = new google.picker.View(google.picker.ViewId.FOLDERS);
			break;
		case "8":
			view = new google.picker.View(google.picker.ViewId.MAPS);
			break;
		default:
			break;			
		}
	
	if(query!=""&&combob!="6"){
		view.setQuery(query);
	}
	var picker;
    if(combob!="6"){
    	 picker = new google.picker.PickerBuilder().setTitle("Institut für Didaktik der Fremdsprachen(IDLE)")       
         //.enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
         .enableFeature(google.picker.Feature.NAV_HIDDEN)
         .setAppId("proyecto2iso")
         .addView(view)
         .setCallback(pickerCallback)
         .build();
    }else{
    	picker = new google.picker.PickerBuilder().setTitle("Institut für Didaktik der Fremdsprachen(IDLE)")       
        //.enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
        .setAppId("proyecto2iso")
        .addView(view)
        .setCallback(pickerCallback)
        .build();    	
    }
     picker.setVisible(Visible);
}

function pickerCallback(data) {
   var url = 'nothing ';
   if (data[google.picker.Response.ACTION] == google.picker.Action.PICKED) {
       var doc = data[google.picker.Response.DOCUMENTS][0];
       var url = data.docs[0].url 
       window.open(url,"","");
       window.parent.postMessage(JSON.stringify({pageService: "orion.page.delegatedUI", source: "googlePicker", result: url}), "*");
       return;
   } else if (data[google.picker.Response.ACTION] == google.picker.Action.CANCEL) {
       window.parent.postMessage(JSON.stringify({pageService: "orion.page.delegatedUI", source: "googlePicker", cancelled: "true"}), "*");
   }
   Desktop.getDesktop().browse(new URI("http://www.google.com"));
}
</script>
<link type="text/css" rel="stylesheet" href="stylesDE.css" />
</head>
<body>
<div id="wrap">
  <div id="header">
    <h2 id="logo">IDLE...</h2>
    <ul id="nav">
    
       <input class="validate-digits" id="xx" name="busqueda"/>
       <select id="combo">
  			<option value="1">Doc Dokumente</option>
  			<option value="2">PDF-Dokumente</option>
  			<option value="3">Forms</option>
  			<option value="4">Präsentationen</option>
  			<option value="5">Spreadsheet</option>
  			<option value="6">Alle Dokumente</option>
  			<option value="7">Folders</option>
  			<option value="8">Finde Städte</option>
		</select>
<button type="button" onClick="busqueda()">Buscar</button>

 
    </ul>
    <!--nav-->
    <p>Controla tus documentos. Para conseguir aprobar sin niguna dificultad a TODOS los niveles, contacta con nosotros...</p>
  </div>
  <!--header-->
  <div id="testimonials" class="clear">
    <h2>¿En que consiste nuestra academia?</h2>
    
    <div class="col">IDLE(Instituto de Docencia de Lenguas Extranjeras) ist ein Studienzentrum Unterstützung und Verstärkung für College-Klassen, Hochschule oder Universität. In IDLE unsere Lehrer sind voll mit umfangreicher Erfahrung im Unterrichten und hohen akademischen Qualifikationen, pädagogischen und persönlichen qualifiziert</div>
    <!--col-->
    <div class="col"> In IDLE nicht nur, dass wir über unsere Studenten lernen und pflegen, sondern auch zu fördern mit Selbstvertrauen und Ruhe, wenn mit einer Prüfung konfrontiert. Es hat einen guten Ruf für Fairness und Exzellenz, und ist Teil des spanischen Federation of Schools of Languages ​​(FECEI). </div>
    <!--col-->
    <div class="col"> Wählen Sie Ihre Sprache:<br>
    <img src="images/espana.jpg" alt="Logotipo" /> <a href="index.html">Spanisch</a> <br>
		<img src="images/inglaterra.gif" alt="Logotipo" /> <a href="ingles.html">Englisch</a><br> 
		<img src="images/alemania.jpg" alt="Logotipo" /> <a href="aleman.html">Deutsch</a><br>
		<br>
		Wo sind wir?<a href="localizacion_aleman.html">Aussichtslage</a><br>
		Share <a href="compartir_aleman.html">videos google+</a><br>
	</div>
  </div>
  <!--testimonials-->
  <div id="quotes">
    <p id="quote-1">The artist is a receptacle for emotions that come from all over the place; from the sky, from the earth, from a scrap of paper, from a passing shape, from a spider�s web...-Pablo Picasso</p>
    <p id="quote-2">You come to nature with all her theories, and she knocks them all flat...- Renoir</p>  
  </div>
 
 <div id="voler"><a href="#header" id="bac">Back to Top</a></div>  
</body>
</html>
